﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Web.UI.Controllers
{
    public class BaseController : Controller
    {
        public BaseController()
        {
        }

        public void showError(string detail)
        {
            TempData["result"] = "error";
            TempData["message"] = string.Format("{0}", detail);
        }

        public void showSuccess(string detail)
        {
            TempData["result"] = "success";
            TempData["message"] = string.Format("{0}", detail);
        }
    }
}
